import { axios } from '@/utils/request'

export function downloadModule(filename) {
  return axios({
    url: '/modules/downloadModule/' + filename,
    method: 'get',
    responseType: 'blob'
  })
}

export function downloadFile(filename) {
  return axios({
    url: '/modules/downloadFile/',
    method: 'post',
    responseType: 'blob',
    data: { file: filename }
  })
}

export function getDevelopPrincipalList() {
  return axios({
    url: '/system/getDevelopPrincipalList/',
    method: 'get'
  })
}
